package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import com.jzo2o.mvc.utils.ResponseUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * @author 86188
 */

@RestController("workCertificationController")
@RequestMapping("/worker/worker-certification-audit")
@Api(tags = "服务端 - 个人实名认证相关接口")
@Slf4j
public class CertificationController {


    @Resource
    private IWorkerCertificationService workerCertificationService;
    @PostMapping
    @ApiOperation("个人信息实名认证")
    public void addBankAccountInfo(@RequestBody WorkerCertificationAuditAddReqDTO dto) {
        workerCertificationService.addWorkerCertification(dto);
    }

    @GetMapping("/rejectReason")
    @ApiOperation("个人认证未通过原因")
    public RejectReasonResDTO getRejectReason() {
        return workerCertificationService.getRejectReason();
    }


}
